
// app.js
App({
  onLaunch() {
    console.log(__wxConfig)
    const version = __wxConfig.envVersion;
    switch (version) {
      // 开发
      case 'develop':
        this.globalData.apihost = 'https://www.ppdxy.cn'
        break;
        // 线上
      case 'release':
        this.globalData.apihost = 'https://www.ppdxy.cn'
        break;
      default:
        this.globalData.apihost = 'https://www.ppdxy.cn'
        break;
    }
  },
  globalData: {
    userInfo: null
  }
})